<?php
// +----------------------------------------------------------------------
// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2019 http://www.thinkcmf.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: 小夏 < 449134904@qq.com>
// +----------------------------------------------------------------------
namespace app\api\validate;

use think\Validate;

class CommonValidate extends Validate{
    protected $rule = [
        'order_num' => 'require',
        'sales_num'  => 'require',
        'pack_num'  => 'require',
        'attachment'  => 'require',
        
    ];

    protected $message = [
        'order_num.require' => '订单号不得为空',
        'sales_num.require'  => '销货单号不得为空',
        'pack_num.require'  => '集装箱号不得为空',
        'attachment.require'  => '请选择上传图片',
    ];
    
    protected $scene = [
        'test'  => ['name'],
        'save_cabinet' => ['order_num','sales_num','pack_num'],
    ];

}